package com.example.finallyjob.dao;

import com.example.finallyjob.entity.Article;
import com.example.finallyjob.entity.User;
import com.example.finallyjob.mapper.IndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class IndexImp implements IndexMapper {
    @Autowired
    private IndexMapper indexMapper;

    @Override
    public List<Article> NewArticle(String type) {
        return indexMapper.NewArticle(type);
    }

    @Override
    public List<Article> HotArticle(String type) {
        return indexMapper.HotArticle(type);
    }

    @Override
    public List<Article> selectTitle(Article article) {
        return indexMapper.selectTitle(article);
    }

    @Override
    public List<User> selectU(User user) {
        return indexMapper.selectU(user);
    }

    @Override
    public List<Article> Zone(Article article) {
        return indexMapper.Zone(article);
    }

    @Override
    public Article selectByNum(Article article) {
        return indexMapper.selectByNum(article);
    }

    @Override
    public User selectById(User user) {
        return indexMapper.selectById(user);
    }
}
